import YThemeProvider from '@/components/YConfigProvider/index.vue';
import YIcon from '@/components/YIcon/index.vue';
import YIconView from '@/components/YIconView/index.vue';
import YConfigTable from '@/components/YConfigTable/index.vue';
import YModal from '@/components/YModal/index.vue';
import YLocalSelect from '@/components/YLocalSelect/index.vue';
import YFormItem from '@/components/YFormItem/index.vue';
import YlayoutBase from "@/components/YLayout/YLayoutBase.vue"
import YLayoutSplit from "@/components/YLayout/YLayoutSplit.vue"
import YFormModal from "@/components/YModal/YFormModal.vue"

import MViewLayout from "@/mobileLayouts/MViewLayout.vue"


const components = [
  YIcon,
  YThemeProvider,
  YIconView,
  YConfigTable,
  YModal,
  YLocalSelect,
  YFormItem,
  YlayoutBase,
  YLayoutSplit,
  YFormModal,
  MViewLayout
];

export function setupGlobalComponents(app) {
  components.forEach((component) => {
    app.component(component.name || component.__name, component);
  });
}
